var _status = 0; // 0, 1

function onInitialize(dw) {
	$zxtUI.sex.conf(c4sex);
	$zxtUI.bank.conf(c4bank);
	$zxtUI.type.conf(c4type);
	$zxtUI.type.render();
	$zxtUI.vip.conf(c4vip);
	
	dw.populateComponents();
	raiseMessage(dw.message());
		
	/*var queryMap = zxt.util.parseLocation();
	if(zxt.util.isAvailable(queryMap["ID"])){
		$zxtUI.id.renderValue(queryMap["ID"]);
		_query();
	};*/
	_setStatus();
};

function onClick$Query() {
	var dw = commit();
	dw.populateComponents();
};

function onClick$Add() {
	var dw = commit();
	dw.populateComponents();
};

function onClick$Delete() {
	var dw = commit();	
	dw.populateComponents();
};

function onClick$Update() {
	var dw = commit();
	dw.populateComponents();
};

function _setStatus() {
	return;
	if ( _status == 1 ){
		$zxtUI.Delete.mode("NORMAL");
		$zxtUI.Delete.render();
		$zxtUI.Update.mode("NORMAL");
		$zxtUI.Update.render();
	} else {
		$zxtUI.Delete.mode("DISABLE");
		$zxtUI.Delete.render();
		$zxtUI.Update.mode("DISABLE");
		$zxtUI.Update.render();
	};
};





